<?php
require 'config.php';
ob_clean();
$generate_time = microtime_float();
$iPro = getValue('iPro','int','GET',0);
$ProductController = new ProductController($iPro);
$ProInfo = $ProductController->getDataField();
//nếu record không tồn tại thì cho về home
if(!$ProductController->recordExists()){
    redirect('/home');
}
?>
<?=$ProductController->loadHeader()?>
<body>
    <div class="top_header">
        <? include '../includes/inc_top_header.php'?>
    </div><!-- End top_header -->
    <div class="container">
        <div class="wrap_container">
            <? include '../includes/inc_header.php'?>
            <? include '../includes/inc_nav.php'?>
            <? include '../includes/inc_product_detail.php'?>
        </div><!-- End wrap_container -->
    </div><!-- End container -->
    <? include '../includes/inc_footer.php'?>
    <? include '../includes/inc_ads.php'?>
</body>
<?=$ProductController->loadFooter($generate_time)?>